<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" class="form-control" name="row[id]" type="text" value="{$row.id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" class="form-control" type="text" value="{$row.user_id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Topic_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-topic_ids" data-rule="" data-source="app/topic/index" data-params='' data-multiple="true" class="form-control selectpage" name="row[topic_ids]" type="text" value="{$row.topic_ids|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" rows="20" name="row[content]" cols="50" disabled>{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mediatype')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-mediatype" data-rule="required" class="form-control selectpicker" name="row[mediatype]" disabled>
                {foreach name="mediatypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.mediatype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="hidden" value="{$row.images|htmlentities}">
                <div class="input-group-addon no-border no-padding" style="display:none;">
                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-images" data-template="imagestpl"></ul>
        </div>
    </div>
    <script type="text/html" id="imagestpl">
        <li class="col-xs-3">
            <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail"><img src="<%=fullurl%>" class="img-responsive"></a>
        </li>
    </script>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vlogtitle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vlogtitle" class="form-control" name="row[vlogtitle]" type="text" value="{$row.vlogtitle|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vlogimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-vlogimage" class="form-control" size="50" name="row[vlogimage]" type="hidden" value="{$row.vlogimages|htmlentities}">
                <div class="input-group-addon no-border no-padding" style="display:none;">
                    <span><button type="button" id="plupload-vlogimage" class="btn btn-danger plupload" data-input-id="c-vlogimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-vlogimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-vlogimage"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-vlogimage" data-template="vlogimagetpl"></ul>
        </div>
    </div>
    <script type="text/html" id="vlogimagetpl">
        <li class="col-xs-3">
            <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail"><img src="<%=fullurl%>" class="img-responsive"></a>
        </li>
    </script>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Vlog')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vlog" class="form-control" name="row[vlog]" type="text" value="{$row.vlog|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rtype')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-rtype" class="form-control selectpicker" name="row[rtype]" disabled>
                {foreach name="rtypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.rtype"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rid" class="form-control" name="row[rid]" type="number" value="{$row.rid|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Commentnum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-commentnum" class="form-control" name="row[commentnum]" type="number" value="{$row.commentnum|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pvnum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pvnum" class="form-control" name="row[pvnum]" type="number" value="{$row.pvnum|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sharenum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sharenum" class="form-control" name="row[sharenum]" type="number" value="{$row.sharenum|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Praisenum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-praisenum" class="form-control" name="row[praisenum]" type="number" value="{$row.praisenum|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addpv')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addpv" class="form-control" name="row[addpv]" type="number" value="{$row.addpv|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addshare')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addshare" class="form-control" name="row[addshare]" type="number" value="{$row.addshare|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addpraise')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addpraise" class="form-control" name="row[addpraise]" type="number" value="{$row.addpraise|htmlentities}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Column')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-column" class="form-control selectpicker" name="row[column]">
                {foreach name="columnList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.column"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div> -->
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Label_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-label_id" data-rule="required" data-source="app/label/index" class="form-control selectpage" name="row[label_id]" type="text" value="{$row.label_id|htmlentities}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recommendswitch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-recommendswitch" class="form-control" name="row[recommendswitch]">
                {foreach name="recommendswitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.recommendswitch"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verify')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-verify" class="form-control selectpicker" name="row[verify]">
                {foreach name="verifyList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.verify"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verifytime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-verifytime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[verifytime]" type="text" value="{:$row.verifytime?datetime($row.verifytime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verifynote')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-verifynote" class="form-control" name="row[verifynote]" type="text" value="{$row.verifynote|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
